2006-09-09 Matthias Clasen <mclasen@redhat.com>
+ * gdk/x11/gdkfonts-x11.c: Fix small theoretical memory leaks.
+ (#353916, Chris Wilson)
+
* gtk/gtksettings.c (_gtk_settings_reset_rc_values):
Don't leak the to_reset list. (#353914, Chris Wilson)
if (!result)
{
result = g_hash_table_new (g_str_hash, g_str_equal);
- g_object_set_qdata (G_OBJECT (display), font_name_quark, result);
+ g_object_set_qdata_full (G_OBJECT (display),
+ font_name_quark, result, (GDestroyNotify) g_hash_table_destroy);
}
return result;
if (!result)
{
result = g_hash_table_new (g_str_hash, g_str_equal);
- g_object_set_qdata (G_OBJECT (display), fontset_name_quark, result);
+ g_object_set_qdata_full (G_OBJECT (display),
+ fontset_name_quark, result, (GDestroyNotify) g_hash_table_destroy);
}
return result;